.NET Framework Class Library |
ConcurrentQueue<(Of <(T>)>)..::.GetEnumerator Method |
ConcurrentQueue<(Of <(T>)>) Class See Also Send Feedback |
Returns an enumerator that iterates through the ConcurrentQueue<(Of <(T>)>).
Namespace:
System.Collections.Concurrent
Assembly:
System.Threading (in System.Threading.dll)
Syntax
Visual Basic (Declaration) |
---|
Public Function GetEnumerator As IEnumerator(Of T) |
C# |
---|
public IEnumerator<T> GetEnumerator() |
Return Value
An enumerator for the contents of the ConcurrentQueue<(Of <(T>)>).Remarks
The enumeration represents a moment-in-time snapshot of the contents
of the queue. It does not reflect any updates to the collection after
GetEnumerator()()() was called. The enumerator is safe to use
concurrently with reads from and writes to the queue.